import request from '@/utils/http.js'

// 用户头像上传
export function uploadAddImg(data) {
    return request({
        url: '/common/upload',
        method: 'post',
        data: data
    })
}

// 图片上传
export function uploadImg(data) {
    return request({
        url: '/fitasty/api/common/upload',
        method: 'post',
        data: data,
        upload: true,
    })
}
